package timing.ukulele.share;

public interface Constant {
    /**
     * 权限在token中的key
     */
    String AUTHORITIES_KEY = "authorities";

    String SCOPES_KEY = "scopes";

    String SUB_KEY = "sub";

    String AUTHORIZATION_HEADER="Authorization";
    String TOKEN_PREFIX = "Bearer ";
    String TOKEN_USER_INFO = "userInfo";
    String TOKEN_USER_INFO_USERNAME = "username";
    String TOKEN_USER_INFO_ID = "id";
    String TOKEN_USER_INFO_NAME = "name";
    String HEADER_USER = "X-USER";
    String HEADER_USER_ID = "X-USER-ID";
    String HEADER_TENANT = "X-TENANT";
    String HEADER_USER_NAME = "X-USER-NAME";
    String TOKEN_CACHE_PREFIX = "token:";
    /**
     * 重置密码邮件验证码缓存前缀
     */
    String REST_PASSWORD_EMAIL_CODE_CACHE_PREFIX = "PWD_REST_CODE_";
    /**
     * 绑定邮箱验证码缓存前缀
     */
    String BIND_EMAIL_CHECK_CODE_PREFIX = "BIND_EMAIL_CODE_";
}
